package com.qiuguo.rtsp.utils;

import com.qiuguo.rtsp.config.RefreshConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author : Liangliang.Zhang4
 * @version : 1.0
 * @date : 2024/9/3
 */
//@Component
@Configuration
public class PropertyValueUtils {

    public static RefreshConfig propertyValueConfig = new RefreshConfig();

    // 注入静态变量
    @Resource
    public void setRefreshConfig(RefreshConfig propertyValueConfig) {
        PropertyValueUtils.propertyValueConfig = propertyValueConfig;
    }


    public static String getRtspUrl() {
        return propertyValueConfig.getRtspUrl();
    }
}